package com.shuoyue.ycgk.ui.mine.mynote.info;

import android.content.Context;
import android.content.Intent;

import com.shuoyue.ycgk.entity.QuestionParent;
import com.shuoyue.ycgk.ui.questionbank.base.BaseQuestionActivity;

import java.util.List;

public class MyNoteInfoActivity extends BaseQuestionActivity implements MyNoteInfoContract.View {
    MyNoteInfoContract.Presenter presenter;

    public static void start(Context context, int questionId) {
        context.startActivity(new Intent(context, MyNoteInfoActivity.class)
                .putExtra("id", questionId));
    }

    @Override
    protected void initView() {
        super.initView();
    }

    @Override
    public void initData() {
        super.initData();
        int questionId = getIntent().getIntExtra("id", -1);
        presenter = new MyNoteInfoContract.Presenter();
        presenter.attachView(this);
        presenter.getQuestionInfo(questionId);
    }

    @Override
    public Class getClassT() {
        return MyNoteInfoMaterialFragment.class;
    }

    @Override
    public Class getClassK() {
        return MyNoteInfoSimpleFragment.class;
    }

    @Override
    public void lastOne() {
//        finish();
    }

    @Override
    public void back() {
        finish();
    }


    @Override
    public void setQuestion(List<QuestionParent> question) {
        setThisActData(question);
    }
}
